package com.future.cglib.v3;

/**
 * Description:
 *
 * @author weiruibai.vendor
 * Date: 2021/9/8 15:23
 */
public class Client {

    public static void main(String[] args) {

        AbstractCglibFactory factory = new BookServiceFactory(new MyCglibProxy("张三"));
        BookServiceBean serviceBean = (BookServiceBean) factory.getProxyInstance();
        serviceBean.create();
        serviceBean.query();
        serviceBean.delete();
        serviceBean.query();
    }
}
